import ApiClient, { RequestParams } from '../utils/ApiClient.ts';

class NewsRequest {
  /**
   * 获得未读的消息数
   * @param params
   * @constructor
   */
  public static CheckoutIsReadCount(params: RequestParams) {
    return ApiClient.get<number>('wx/v1/remind/checkoutIsReadCount', params);
  }

  /**
   * 获得消息列表
   * @param params
   * @constructor
   */
  public static NewsList(params: RequestParams) {
    return ApiClient.get<INewsListList>('wx/v1/remind/page', params);
  }
}

export default NewsRequest;
